var express = require('express');
var router = express.Router();

const {login}=require('../service/loginService')
/* GET home page. */
router.post('/', async function (req, res, next) {
 
   
    const loginUser = req.body;//先保存登陆的用户信息
     
    const data = await login(loginUser);
  
    res.send(data);
  
  });
module.exports = router;